<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-14
 * Time: 18:08
 */

namespace app\api\controller\v1;


use app\api\controller\BaseController;
use app\api\service\invite\InviteSer;
use app\api\service\partner\AssistantSer;
use app\api\service\partner\CreateAssistant;

class Assistant extends BaseController
{

    /**
     * 生成邀请助理二维码
     */
    public function createCode()
    {
        $invite = new InviteSer();
        return $invite->getAssistantImg();
    }

    /**
     * 绑定助理信息
     */
    public function createAssistant($invite_user_id)
    {
        $assistant = new CreateAssistant($invite_user_id);
        return $assistant->set();
    }

    /**
     * 查看助理列表
     */
    public function getAssistantList()
    {
        $assistant = new AssistantSer();
        return $assistant->entrance();
    }
}